package cn.tedu.straw.portal.service;

import cn.tedu.straw.portal.dto.StudentRegisterDTO;
import cn.tedu.straw.portal.model.User;
import cn.tedu.straw.portal.vo.TeacherVO;
import cn.tedu.straw.portal.vo.UserLoginVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-11-12
 */
public interface IUserService extends IService<User> {
    User findByPhone(String phone);

    /**
     * 用户注册
     * @param studentRegisterDTO
     */
    void studentRegister(StudentRegisterDTO studentRegisterDTO);

    /**
     * 获取登陆用户信息
     * @param
     * @return
     */
    UserLoginVO getLoginUserInfo(String phone);

    /**
     * 获取所有老师
     * @return
     */
    List<TeacherVO> getAllTeachers();
}
